<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<!-- 	<script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/jquery1.4.js"></script>  -->
<script type="text/javascript" src="${pageContext.request.contextPath}/resource/js/jquery1.4.js"></script>

		<title>Hive-Top 登录</title>
</head>

<body>
	
 	<jsp:include page="../inc/head_nav.jsp" />
  	    
<div class="hr tp-div-nexthr" style="margin-top: 0;margin-bottom: 0;padding: 0;"></div>
	<div class="container pb-15">
	<!-- Example row of columns -->
	<div class="row">
		<div class="span16">
			<div class="label-public-title t-30">
				<ul class="clearfix">
					<li class="pull-left selected border-all r-20"><a href="javascript:;" title="登录" style="_padding: 0;">登录</a></li>
					<li class="pull-left border-all"><a href="${pageContext.request.contextPath}/user/userRegister.jsp" title="注册">注册</a></li>
				 
				</ul>
			</div>
			<div class="label-div t-15 border-all" style="padding: 0;">
				<div class="label-main">
					<div class="clearfix label-public">
						<div class="pull-left third-party l-30 pt-25">
							<div class="fc333"><h1><strong>H</strong><strong>i</strong><strong>v</strong><strong>e  </strong><strong> T</strong><strong>o</strong><strong>p</strong></h1></div>
							<div class="clearfix t-25">
								<img alt="Hive-Top" src="${pageContext.request.contextPath}/resource/images/login_logo_annc.jpg" style="width:450px; margin-right:30px; margin-bottom: 15px;">
							</div>
							<p class="fc999" style="max-width: 470px;">欢迎加入HiveTop，这里有最新的资讯、丰富的知识、贴心的服务，还有你正在寻找的圈子和朋友。</p>
						</div>
						<form id="loginsubform" action="${pageContext.request.contextPath}/UserSer?tag=login" method="post">	
						<div class="pull-left border-l public-login span7" style="min-height: 385px;">
							<div class="t-25 pl-30 fc333">${errMess!=null?errMess:'登录发现更多，使用用户名登录' }</div>
							<div class="clearfix pt-25" >
								<div class="title pull-left fc999" style="width: 60px;">用户名</div>
								<div class="pull-left l-20" style="_margin-left: 0;width: 100px;"><input type="text" id="username" name="username" value="" class="span4"/></div>
								<span class="pull-left l-20 fcCF261F info username_msg"></span>
							</div>
							<div class="clearfix pt-25">
								<div class="title pull-left fc999" style="width: 60px;">密&nbsp;&nbsp;&nbsp;码</div>
								<div class="pull-left l-20" style="_margin-left: 0;width: 100px;"><input type="password" id="password" name="userpwd" value="" class="span4"/></div>
								<span class="pull-left l-20 fcCF261F info password_msg"></span>
							</div>
							<div class="clearfix pt-25">
								<div class="title pull-left" style="margin-left: 6px;_margin-left: 3px;">&nbsp;</div>
								<a href="javascript:void(0);" title="登录" onclick="submit_form(this)"  class="pull-left login-register-btn">登&nbsp;录</a> <!-- 一个可用的onclick值：document.getElementById('loginsubform').submit();return false -->
								<div class="pull-left l-20 t-8" style="_width: auto;_margin-left: 15px;"><input id="rempass" name="rempass" type="checkbox" checked="checked" style="_width: 20px;_margin: 0;"/></div>
								<span class="pull-left l-5 info fc999" style="_width: auto;_margin: 0;">记住用户名密码<!-- <span class="l-10 fcccc">|</span><a class="fc999 l-10" href="" title="忘记密码">忘记密码</a> --></span>
							</div>
						</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>





<!-- /container -->
 <div class="container">
 
 	<div class="hr"></div>
    
    </div>
  
<!-- /container -->


<jsp:include page="../inc/footer_nav.jsp" />
     
 
<script type="text/javascript">
$('input').keydown(function(event){  
	if(event.keyCode == 13)submit_form('.login-register-btn');
}); 

var submit_form = function(obj) {
	 adminLogin();
};


//网站后台登录
adminLogin = function(){
	var reg1 = /\w{6}/;     		//不能少于6位
	var reg2 = /^[A-Za-z]/;		//开头必须为字母
	var reg3 = /[0-9A-Za-z]/;	//只允许包含数字、大小写字母
	//用户名验证
	if($('#username').attr("value") == ''){
		$(".username_msg").html('请输入您的名字');
		$("#username").focus();
		setTimeout(function(){$(".username_msg").html('');},3000);
		return false;
	}
	//密码验证
	if($('#password').attr("value") == ''){
		$(".password_msg").html('请输入您的密码');
		setTimeout(function(){$(".password_msg").html('');},3000);
		$("#password").focus();
		return false;
	}
	
	document.getElementById("loginsubform").submit();
	return true;
};
</script>	


<script type="text/javascript">
//回到顶部
backToTop('body');
</script>

</body>
</html>
